<template>
  <ion-page>
    <ion-header>
      <ion-toolbar color="light" class="pub-hearder">
        <ion-buttons slot="start">
          <ion-back-button text=""></ion-back-button>
        </ion-buttons>
        <ion-title>
          开通超级会员
        </ion-title>
      </ion-toolbar>
    </ion-header>
    <ion-content>
      <div class="linehight"> 
        <span>155****3552</span><br/><label>暂未开通会员</label>
        <img src="@/assets/images/vip.png" alt="">
      </div>
      <div class="box">
        <ion-row>
          <ion-col>
            <img src="@/assets/images/icon-ztxl.png" alt="">
            <div>真题训练</div>
          </ion-col>
          <ion-col>
            <img src="@/assets/images/icon-qzmn.png" alt="">
            <div>全真模拟</div>
          </ion-col>
          <ion-col>
            <img src="@/assets/images/icon-zcjx.png" alt="">
            <div>政策解析</div>
          </ion-col>
        </ion-row>
      </div>
      <div style="margin-top: 5px;">
        4项专属权益助力艺考
      </div>
      <div class="grad">
        <div class="content">
          <div class="label">科技助力艺考</div>
          <div class="desc">独家开发海量题库</div>
          <img src="@/assets/images/icon-kjzl.png" alt="">
        </div>
        <div class="content">
          <div class="label">校考真题宝典</div>
          <div class="desc">全国院校权威考题合集</div>
          <img src="@/assets/images/icon-xkzt.png" alt="">
        </div>
        <div class="content">
          <div class="label">统考真题合集</div>
          <div class="desc">覆盖各省历年考题库</div>
          <img src="@/assets/images/icon-tkzt.png" alt="">
        </div>
        <div class="content">
          <div class="label">招考动态速递</div>
          <div class="desc">校省简章政策实时同步</div>
          <img src="@/assets/images/icon-phb.png" alt="">
        </div>
      </div>
      <div class="prices">
        <div class="con active">
          <span>半年VIP</span>
          <div class="price">¥199</div>
          <div class="oldprice">原价¥299</div>
          <div class="desc">每日仅需1.1元</div>
        </div>
        <div class="con">
          <span>一年VIP</span>
          <div class="price">¥365</div>
          <div class="oldprice">原价¥299</div>
          <div class="desc">每日仅需1元</div>
        </div>
        <div class="con">
          <span>终身VIP</span>
          <div class="price">¥999</div>
          <div class="oldprice">原价¥299</div>
          <div class="desc">尊享终身会员权益</div>
        </div>
      </div>
      <button>¥<span>999</span> 确认协议并开通</button>
      <div class="xy">
        <ion-checkbox @ionChange="change()" label-placement="end" color="danger"></ion-checkbox>已阅读并同意<span>《小三门会员服务协议》</span>和<span>《自动续费服务规则》</span>
      </div>
    </ion-content>
  </ion-page>
</template>

<script lang="ts">
import { IonHeader, IonToolbar, IonButtons, IonBackButton,  IonTitle , IonPage, IonContent, IonRow, IonCol, IonCheckbox } from '@ionic/vue';
import { reactive, toRefs, onMounted } from 'vue';
import { chevronForwardOutline } from 'ionicons/icons';
import { NativeService } from '@/utils/native-service';
import { getCurrentAppInfo } from '@/utils/app-info';
export default {
  name: 'login-page',
  components: {
    IonPage, IonContent, IonHeader, IonToolbar, IonButtons, IonBackButton,  IonTitle, IonRow, IonCol, IonCheckbox
  },
  setup() {
    const nativeService = new NativeService();
    const state = reactive({
      version: '',
    })


    // startLoc

    return {
      ...toRefs(state),
      chevronForwardOutline,
    }
  }
}
</script>
<style lang="scss" scoped>
ion-content{
  --background: #f4f4f4;
  --padding-start: 10px;
  --padding-end: 10px;
  .linehight{
    background: #143268;
    margin-top: 20px;
    padding: 20px 10px;
    border-radius: 10px 10px 0 0;
    color: #fff;
    font-size: 14px;
    position: relative;
    img{
      width: 104px;
      vertical-align: middle;
      /* margin-right: 10px; */
      position: absolute;
      right: 10px;
      top: -10px;
    }
    span{
      font-size: 18px;
    }
    label{
      font-size: 10px;
    }
  }
  .box{
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #1E1E1F;
    position: relative;
    top: -6px;
    img{
      width: 60px;
    }
  }
}
.prices{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  .con{
    background: #fff;
    border-radius: 10px;
    border: 1.5px solid #EBECED;
    padding: 10px 0px;
    overflow: hidden;
    span{
      font-size: 14px;
      color: #222222;
      position: relative;
      top: 5px;
    }
    .price{
      color: #2e3033;
      font-size: 18px;
      margin: 10px 0px;
      font-weight: bold;
    }
    .oldprice{
      font-size: 10px;
      color: #999999;
      margin: 10px 0px;
      text-decoration: line-through;
    }
    .desc{
      font-size: 10px;
      color: #999999;
      background: #efefef;
      padding: 5px 0px;
      position: relative;
      top: 10px;
    }
  }
  .con.active{
    color: #DA8A4D !important;
    border: 1.5px solid  #DA8A4D;
    span{
      color: #DA8A4D !important;
    }
    .price{
      color: #DA8A4D !important;
    }
    .desc{
      background: #FFE9D9;
    }
  }
}
.grad{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0px;
  .content{
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    .label{
      font-size: 14px;
      color: #333333;
    }
    .desc{
      font-size: 10px;
      color: #999999;
      margin-top: 20px;
    }
    img{
      width: 30px;
      position: absolute;
      right: 10px;
      top: 10px;
    }
  }
}
button{
  background: #CA3032;
  border-radius: 15px;
  padding: 15px 0px;
  margin-top: 50px;
  width: 100%;
  color: #fff;
  font-size: 14px;
  span{
    font-size: 16px;
    font-weight: bold;
  }
}
.xy{
  font-size: 14px;
  margin-top: 10px;
  ion-checkbox{
    --size: 15px;
    display: inline-block;
    vertical-align: bottom;
    margin-right: 5px;
    position: relative;
    top: -2px;
  }
  span{
    color: #CA3032;
  }
}
</style>